package pt.mauromad.guias.bean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import pt.mauromad.guias.dao.CompanyDao;

public class AddressBean {
	private Long id;
	@NotNull
	private String address;
	@NotNull
	@Pattern(regexp = "\\d{4}-\\d{3}")
	private String postalCode;
	@NotNull
	private String city;
	private CompanyDao company;
	@NotNull
	private boolean mainAddress;
	private String description;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public CompanyDao getCompany() {
		return company;
	}

	public void setCompany(CompanyDao company) {
		this.company = company;
	}

	public boolean isMainAddress() {
		return mainAddress;
	}

	public void setMainAddress(boolean mainAddress) {
		this.mainAddress = mainAddress;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
